package com.ld.security.shop.crawler.modules.re.api;



import com.ld.security.auth.common.anno.IgnoreUserToken;
import com.ld.security.common.core.base.po.PagePo;
import com.ld.security.common.core.base.vo.DataVo;
import com.ld.security.common.core.base.vo.PageVo;
import com.ld.security.common.tomcat.base.api.*;


import com.ld.security.shop.crawler.modules.re.entity.ReBook;
import com.ld.security.shop.crawler.modules.re.service.IReBookService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags="书本Api管理")
@RequestMapping("/api/reBook")
public class  ReBookApi extends SuperApi<ReBook> {


    @Autowired
    IReBookService iReBookService;

    @RequestMapping(value = "/ramdomPage",method = RequestMethod.POST)
    @ApiOperation("随机分页")
    @IgnoreUserToken
    public DataVo ramdomPage( PagePo<ReBook> po){
        PageVo<ReBook> vo =  iReBookService.randomPage(po);
        return DataVo.of(vo);
    }


}
